package classes.controlers {
	import classes.managers.Game_Manager;
	import flash.display.MovieClip;
	import flash.events.Event;
	/**
	 * ...
	 * @author Kihoonee
	 */
	public class Disrupt_Controler extends A_Controler {
		
		public function Disrupt_Controler( _gm:Game_Manager, _mc:MovieClip ) {
			super( _gm, _mc );
		}
		
		public function init():void {
			visible = false;
			mc.gotoAndStop(1);
		}
		
		public function start( _num:int ):void {
			visible = true;
			
			switch (_num) {
				case 1: mc.gotoAndPlay("방해요소 1"); mc.addEventListener("disrupt_END", disrupt_END );
				break;
				case 2: mc.gotoAndPlay("방해요소 2"); mc.addEventListener("disrupt_END", disrupt_END );
				break;
				case 3: mc.gotoAndPlay("방해요소 3"); mc.addEventListener("disrupt_END", disrupt_END );
				break;
				case 4: mc.gotoAndPlay("방해요소 4"); mc.addEventListener("disrupt_END", disrupt_END );
				break;
				case 5: mc.gotoAndPlay("방해요소 5"); mc.addEventListener("disrupt_END", disrupt_END );
				break;
				case 6: mc.gotoAndPlay("방해요소 6"); mc.addEventListener("disrupt_END", disrupt_END );
				break;
				case 7: mc.gotoAndPlay("방해요소 7"); mc.addEventListener("disrupt_END", disrupt_END );
				break;
				case 8: mc.gotoAndPlay("방해요소 8"); mc.addEventListener("disrupt_END", disrupt_END );
				break;
				case 9: mc.gotoAndPlay("방해요소 9"); mc.addEventListener("disrupt_END", disrupt_END );
				break;
				case 10: mc.gotoAndPlay("방해요소 10"); mc.addEventListener("disrupt_END", disrupt_END );
				break;
				default:
			}
		}
		
		private function disrupt_END(e:Event):void {
			visible = false;
			mc.removeEventListener("disrupt_END", disrupt_END );
		}
	}

}